package uYach

import "testing"

func TestSend(t *testing.T) {
	msg := NewMsg().T("testing udcTools yach send at all...").AA()
	yach := NewYach("Mmlmd0t1SzV6cVNGU2VnS25HNmViT0d2dEZBT3oybk5LUFJyUCtnVSt6TFJLeERBUVkyWFJoaGxQWDZndE1sUg", "SEC3a459e5fcdb4fd14913b9ca194442d7c")

	err := yach.Send(msg)
	if err != nil {
		t.Error("发送失败", err)
	}

	msg2 := NewMsg().T("testing udcTools yach send at wll ...").A([]string{"13020084949"})
	err = yach.Send(msg2)
	if err != nil {
		t.Error("发送失败", err)
	}
}
